import 'package:flutter/material.dart';

class SingleScrollViewDemo extends StatelessWidget{

  final String str = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ";

  @override
  Widget build(BuildContext context) {



    return Scaffold(

      appBar: AppBar(title: Text('SingleScrollViewDemo'),),


      ///显示滚动条
      body: Scrollbar(


        ///不支持基于 Sliver（薄片）延迟实例化模型-就是子view一下子全部加载出来
        child: SingleChildScrollView(


          child: Center(

            child: Column(

              children: str.split('').map((e) {

                return Text(e,style: TextStyle(fontSize: 30),);

              }).toList(),
            ),
          ),

        ),
      ),
    );
  }
}